<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ include file="/sys/include/header.jsp" %>
<%@ page import="java.util.*,com.es.business.area.*, com.es.business.province.*"%>

<HTML>
 <HEAD>
  <TITLE> 修改省区</TITLE>

   <link href="sys/style01/css/table.css" rel="stylesheet" type="text/css" />
   <link href="sys/css/banzu.css" rel="stylesheet" type="text/css" />  

<script type="text/javascript">
 
function save()
{			
 
	   if(document.form1.hprovince_code.value=="")
		{
				alert("请输入省编码!");
		}
		else if(document.form1.hprovince_value.value==""){
			alert("请输入省名称");
			}else if(document.form1.harea_code.value==""){
				alert("请选择区域");
			}else{
			document.form1.submit();
		}
		
}

function returns()
{
	document.form2.submit();
}

</script>


 <link href="sys/style01/css/table.css" rel="stylesheet" type="text/css">
 </HEAD>

 <BODY class="ridgeBody">

 
<form name="form1" method="post" action="business/province/provinceModifyDo.action">
  <input type="hidden" name="hprovince_id" value="${pBean.provinceId}">
<table class=datatable width=50% cellpadding='0' cellspacing='0' border='1' bordercolorDark='white' bordercolorLight='#BEBEBE' >
      <!--DWLayoutTable-->
      <tr >
        <TD height="28" colspan="2"  class="dataTitle">修改省区信息</TD>
    </tr>      
      <tr>
      <td height="26" with="25%" nowrap="nowrap" class="datatr1"><span class="STYLE1"><font color="#FF0000">*</font></span>区域：</td>
		<td height="26" with="25%">
			<select class="selectwidth" name="harea_code"   >
		            <option value="" selected>请选择</option>
		            <c:forEach items="${arealist}" var="area">
						<option value="${area.areaCode}"<c:if test="${area.areaCode==harea_code}">selected</c:if>>${area.areaValue}</option>	
					</c:forEach>
		        </select>
		</td>
		</tr>
		<tr>
        <TD width=30% height="22" valign="top" nowrap class="datatr1"> 省编码<font color="#FF0000">*</font>：</TD>	
	<TD valign="top" nowrap > 
	      <input name="hprovince_code" type="text" class="input" value="${pBean.provinceCode} "/> 	</TD>
 	 </tr>
 	 
 	  <tr>
        <TD width=30% height="22" valign="top" nowrap class="datatr1"> 省名称<font color="#FF0000">*</font>：</TD>	
	<TD valign="top" nowrap > 
	      <input name="hprovince_value" type="text" class="input" value="${pBean.provinceName}"/> 	</TD>
 	 </tr>
      
      <tr >
        <TD height="21" colspan="2" valign="top" class="dataTitle">  <input type="button" name="Submit1" value="保存" onClick="save()"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

       <input type="button" name="Submit1" value="返回" onClick="returns()"/> </TD>
  	 </tr>

        <%	
        if(request.getAttribute("message")!=null)
        {
        	String message=request.getAttribute("message").toString();
        %>
     	 
     	 <tr>
     	   <td height="2" colspan="4" valign="top"><%=message%></td>

   	   </tr>
     	 
     	 
  		 <%}%>
  </TABLE>
</form>

<form name="form2" method="post" action="business/province/provincesearch.action">
</form>
 </BODY>
</HTML>